package com.biao.seckill.scheduled;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@EnableScheduling
@Component
@Slf4j
public class SchedulingTest {
    /**
     * 定时任务 每秒执行一次
     */
//    @Scheduled(cron = "* * * * * ? ")
//    public void test(){
//      log.info("hello");
//    }
}
